package com.yhsimon.util;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * @author： YHSimon
 * @date： 2021-04-05 19:52
 */
public class MySecurity {
    private static String SALT="b7b8d4cdaa1148b3aeeca976d329c17b";
    private static int HASHINTERATIONS=5;
    public static String encryptUserPassword(String source){
        return new Md5Hash(source, SALT, HASHINTERATIONS).toBase64();
    }
}

